#include "GraphEdge.h"

GraphEdge::GraphEdge(int start, int end, float cost)
{
	m_Start = start;
	m_End = end;
	m_Cost = cost;
}

int GraphEdge::ReturnEndNodeID()
{
	return m_End;
}

int GraphEdge::ReturnStartNodeID()
{
	return m_Start;
}

int GraphEdge::ReturnEdgeCost()
{
	return m_Cost;
}

bool GraphEdge::operator==(GraphEdge g) const
{
	return (m_Start == g.ReturnStartNodeID() && m_End == g.ReturnEndNodeID() && m_Cost == g.ReturnEdgeCost());
}